package com.tjec.project.workflow.controller;

import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.tjec.framework.aspectj.lang.annotation.Log;
import com.tjec.framework.aspectj.lang.enums.BusinessType;
import com.tjec.framework.security.service.TokenService;
import com.tjec.project.businessWorkbench.domain.BmsBusiness;
import com.tjec.project.businessWorkbench.service.IBmsBusinessService;
import com.tjec.project.workflow.domain.BmsWorkflow;
import com.tjec.project.workflow.service.IBmsWorkflowService;
import com.tjec.framework.web.controller.BaseController;
import com.tjec.framework.web.domain.AjaxResult;
import com.tjec.common.utils.ServletUtils;
import com.tjec.common.utils.poi.ExcelUtil;
import com.tjec.framework.web.page.TableDataInfo;

/**
 * bpm回写业务系统资料归档状态Controller
 * 
 * @author pangyongfeng
 * @date 2020-05-25
 */
@RestController
@RequestMapping("/workflow/archive")
public class BpmDocArchiveController extends BaseController
{
    @Autowired
    private IBmsBusinessService bmsBusinessService;

    /**
     * 修改资料归档状态
     */
    @Log(title = "bpm更新资料归档状态", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody BmsBusiness bmsBusiness)
    {
        return toAjax(bmsBusinessService.updateBmsBusiness(bmsBusiness));
    }

}
